//
//  MyLikeCategoryCell.m
//  jingdongfang
//
//  Created by MTiMac02 on 2018/5/10.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "MyLikeCategoryCell.h"
#import "GCategoryListModel.h"

@implementation MyLikeCategoryCell

- (void)awakeFromNib {
    [super awakeFromNib];
 
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    GCategoryListModel *categoryList = self.data;
    [self.image sd_setImageWithURL:[NSURL URLWithString:categoryList.image]];
    self.categoryName.text=categoryList.title;
    [_selectBtn setSelected:self.isSelected];
}

- (IBAction)selectBtnClick:(UIButton *)sender {
    sender.selected=!sender.isSelected;
    self.isSelected=sender.selected;
    
}


@end
